<?php include("../../core/connect.php");?>
<?php 

$room_id = $_GET["room_id"];
$parent=$_GET['idquanhuyen'];

if ($parent != null) {
	$parent = mysql_real_escape_string($parent);
	$strQuery = 'SELECT * FROM tbtinhthanh WHERE tinhthanh_parent="'. $parent.'"';
	$result = mysql_query($strQuery);
	if ($result == NULL) {
	exit();
	}
?>

<?php
$num=0;
?>
<table>
    <tr>
        <td>
        <select name="quanhuyen" style="width:300px">
		<option value="">--Lựa chon-- </option>
	<?php	while($row = mysql_fetch_array($result))
			{
				$num=$num+1;
			?>
        	<option value="<?php echo $row['tinhthanh_id']?>"><?php echo $row['tinhthanh_tieude'];?> </option>
            <?php
			}
			?>
        </select>
        </td>
    </tr>
</table>


<?php }?>
